﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decorator_Pattern
{
    class TomatoSauce : ToppingDecorator
    {
        public TomatoSauce(Pizza pizza)
            : base(pizza)
        {
            Console.WriteLine("Adding TomatoSauce");
        }

        public override String getDescription()
        {
            return tempPizza.getDescription() + ", TomatoSauce";
        }

        public override double getCost()
        {
            return tempPizza.getCost() + 0.30;
        }
    }
}
